#!/usr/bin/python3
# -*- coding: UTF-8 -*-
"""
Math:
    math 模块提供对浮点数的底层 C 库函数的访问

"""
import math
print(math.cos(math.pi / 4))
print(math.log(1024, 2))


import random
print(random.choice(['apple', 'pear', 'banana']))
print(random.sample(range(100), 10))
print(random.random())
print(random.randrange(6))


import statistics
data = [2.75, 1.75, 1.25, 0.25, 0.5, 1.25, 3.5]
print(statistics.mean(data))
print(statistics.median(data))
print(statistics.variance(data))


